﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using FB.DataAccess;
using FB.Utilities;

namespace FB.Bussiness
{
    public class ChanelCategoryBO
    {
        public IEnumerable<ChanelCategory> GetAllChanelCategory()
        {
            ChanelCategoryDAO _dao = new ChanelCategoryDAO();
            return _dao.GetAllChanelCategory();
        }
        public ChanelCategory GetChanelCategoryById(Guid id)
        {
            ChanelCategoryDAO _dao = new ChanelCategoryDAO();
            return _dao.GetChanelCategoryByID(id);
        }
        public bool UpdateChanelCategory(ChanelCategory inChanelCategory)
        {
            ChanelCategoryDAO _dao = new ChanelCategoryDAO();
            return _dao.UpdateChanelCategory(inChanelCategory);
        }
        public bool InsertChanelCategory(ChanelCategory inChanelCategory)
        {
            ChanelCategoryDAO _dao = new ChanelCategoryDAO();
            return _dao.InsertChanelCategory(inChanelCategory);
        }

        public ReturnValue<bool> DelChanelCategory(Guid id)
        {
            ChanelCategoryDAO _dao = new ChanelCategoryDAO();
            return _dao.DelChanelCategory(id);
        }
    }
}
